home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / Notification.p < prev    next >
Encoding:
Text File  |  1997-08-12  |  2.3 KB  |  98 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Notification.p
  3.  
  4.      Contains:    Notification Manager interfaces
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1989-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT Notification;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __NOTIFICATION__}
  28. {$SETC __NOTIFICATION__ := 1}
  29.  
  30. {$I+}
  31. {$SETC NotificationIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __OSUTILS__}
  38. {$I OSUtils.p}
  39. {$ENDC}
  40.  
  41.  
  42. {$PUSH}
  43. {$ALIGN MAC68K}
  44. {$LibExport+}
  45.  
  46.  
  47. TYPE
  48.     NMRecPtr = ^NMRec;
  49.     NMProcPtr = ProcPtr;  { PROCEDURE NM(nmReqPtr: NMRecPtr); }
  50.  
  51.     NMUPP = UniversalProcPtr;
  52.     NMRec = RECORD
  53.         qLink:                    QElemPtr;                                {  next queue entry }
  54.         qType:                    INTEGER;                                {  queue type -- ORD(nmType) = 8 }
  55.         nmFlags:                INTEGER;                                {  reserved }
  56.         nmPrivate:                LONGINT;                                {  reserved }
  57.         nmReserved:                INTEGER;                                {  reserved }
  58.         nmMark:                    INTEGER;                                {  item to mark in Apple menu }
  59.         nmIcon:                    Handle;                                    {  handle to small icon }
  60.         nmSound:                Handle;                                    {  handle to sound record }
  61.         nmStr:                    StringPtr;                                {  string to appear in alert }
  62.         nmResp:                    NMUPP;                                    {  pointer to response routine }
  63.         nmRefCon:                LONGINT;                                {  for application use }
  64.     END;
  65.  
  66.  
  67. CONST
  68.     uppNMProcInfo = $000000C0;
  69.  
  70. PROCEDURE CallNMProc(nmReqPtr: NMRecPtr; userRoutine: NMUPP);
  71.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  72.     INLINE $205F, $4E90;
  73.     {$ENDC}
  74.  
  75. FUNCTION NewNMProc(userRoutine: NMProcPtr): NMUPP;
  76.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  77.     INLINE $2E9F;
  78.     {$ENDC}
  79. FUNCTION NMInstall(nmReqPtr: NMRecPtr): OSErr;
  80.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  81.     INLINE $205F, $A05E, $3E80;
  82.     {$ENDC}
  83. FUNCTION NMRemove(nmReqPtr: NMRecPtr): OSErr;
  84.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  85.     INLINE $205F, $A05F, $3E80;
  86.     {$ENDC}
  87.  
  88. {$ALIGN RESET}
  89. {$POP}
  90.  
  91. {$SETC UsingIncludes := NotificationIncludes}
  92.  
  93. {$ENDC} {__NOTIFICATION__}
  94.  
  95. {$IFC NOT UsingIncludes}
  96.  END.
  97. {$ENDC}
  98.